package chapter3.No3_1_等待和通知机制.k通过管道进行线程间通信_字节流;

import java.io.PipedInputStream;

/**
 * Created by Administrator on 2016/11/19.
 */
public class ThreadRead extends Thread {
    ReadData readData;
    PipedInputStream pis;

    public ThreadRead(ReadData readData, PipedInputStream pis) {
        this.readData = readData;
        this.pis = pis;
    }

    @Override
    public void run() {
        readData.readMethod(pis);
    }
}
